/*
 * @Description: 
 * @Author: iamsmiling
 * @Date: 2021-06-09 06:46:17
 * @LastEditTime: 2021-06-09 07:20:27
 */
import 'dart:ui';

import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';

class StarPartnerBody extends StatelessWidget {
  const StarPartnerBody({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            margin: EdgeInsets.only(top: R.dimen.dp13),
            color: R.color.ffffffff,
            padding: EdgeInsets.only(top: R.dimen.dp24, bottom: R.dimen.dp15),
            child: Column(
              children: [
                DefaultTextStyle(
                    style: TextStyle(
                        fontSize: R.dimen.sp14,
                        color: R.color.ff222222,
                        fontWeight: FontWeight.w600),
                    child: Container(
                      padding: EdgeInsets.symmetric(horizontal: R.dimen.dp22),
                      child: Row(
                        children: [
                          Expanded(child: Text("层级")),
                          Expanded(child: Text("关系")),
                          Expanded(child: Text("佣金比例"))
                        ],
                      ),
                    )),
                DefaultTextStyle(
                    style: TextStyle(
                        fontSize: R.dimen.sp14, color: R.color.ff222222),
                    child: Container(
                      margin: EdgeInsets.only(top: R.dimen.dp16),
                      child: Column(
                        children: List.generate(
                          3,
                          (index) => Container(
                            margin: EdgeInsets.only(
                                left: R.dimen.dp13,
                                right: R.dimen.dp13,
                                bottom: R.dimen.dp7),
                            decoration: BoxDecoration(
                                color: R.color.fff7f7f7,
                                borderRadius:
                                    BorderRadius.circular(R.dimen.sp3)),
                            padding:
                                EdgeInsets.symmetric(vertical: R.dimen.dp11),
                            child: Row(
                              children: [
                                Expanded(
                                    child: Container(
                                  child: Text("一级成员"),
                                  padding: EdgeInsets.only(left: R.dimen.dp10),
                                )),
                                Expanded(child: Text("直接")),
                                Expanded(
                                    child: Container(
                                  margin: EdgeInsets.only(left: R.dimen.dp10),
                                  child: Text(
                                    "15%",
                                  ),
                                ))
                              ],
                            ),
                          ),
                        ),
                      ),
                    ))
              ],
            ),
          ),
          Container(
            color: R.color.ffffffff,
            padding: EdgeInsets.symmetric(
                vertical: R.dimen.dp22, horizontal: R.dimen.dp13),
            margin: EdgeInsets.only(
              top: R.dimen.dp13,
            ),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  "关于星合伙人",
                  style: TextStyle(
                      fontSize: R.dimen.sp15,
                      fontWeight: FontWeight.w600,
                      color: R.color.ff111111),
                ),
                Container(
                  margin:
                      EdgeInsets.only(top: R.dimen.dp16, bottom: R.dimen.dp16),
                  child: Text(
                    "星合伙人推荐可获得3级关系的分佣收益\n星合伙人共分5个星级，星级越高直接推荐分佣越高",
                    style: TextStyle(
                        height: 1.5,
                        fontSize: R.dimen.sp14,
                        color: R.color.ff555555),
                  ),
                ),
                Text(
                  "一星合伙人：直接推荐成员15%分佣，推荐有效用户10人即可达成。 \n二星合伙人：直接推荐成员17%分佣，推荐有效用户30人即可达成。 \n三星合伙人：直接推荐成员19%分佣，推荐有效用户100人即可达成。 \n四星合伙人：直接推荐成员21%分佣，推荐有效用户300人即可达成。 \n五星合伙人：直接推荐成员25%分佣，推荐有效用户500人即可达成。",
                  style: TextStyle(
                      height: 2,
                      fontSize: R.dimen.sp12,
                      color: R.color.ff111111),
                ),
                Container(
                  margin: EdgeInsets.only(top: R.dimen.dp20),
                  padding: EdgeInsets.symmetric(
                      vertical: R.dimen.dp15, horizontal: R.dimen.dp13),
                  decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(R.dimen.sp5),
                      color: R.color.fffaf8e9),
                  child: Text(
                    "注：作弊刷单行为会被永久取消合伙人资格情节严重者冻结账号处罚。连续3个月直接成员每月充值流水达10万的五星合伙人需至公司签订合伙人协议。",
                    style: TextStyle(
                      fontSize: R.dimen.sp13,
                      color: R.color.ff935425,
                    ),
                  ),
                )
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(top: R.dimen.dp13, bottom: R.dimen.dp13),
            color: R.color.ffffffff,
            padding: EdgeInsets.symmetric(
                vertical: R.dimen.dp15, horizontal: R.dimen.dp13),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text(
                  "合伙人专属客服经理",
                  style: TextStyle(
                      fontWeight: FontWeight.w600,
                      fontSize: R.dimen.sp15,
                      color: R.color.ff111111),
                ),
                GestureDetector(
                  child: Container(
                    padding: EdgeInsets.symmetric(
                        horizontal: R.dimen.dp25, vertical: R.dimen.dp8),
                    decoration: BoxDecoration(
                        color: R.color.ff00c28a,
                        borderRadius: BorderRadius.circular(R.dimen.sp5)),
                    child: Text(
                      "联系他",
                      style: TextStyle(
                          fontWeight: FontWeight.w500,
                          fontSize: R.dimen.sp13,
                          color: R.color.ffffffff),
                    ),
                  ),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}
